]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/thunderbolt: Actually connect onDestroy callback
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 24 Jul 2025 23:13:03 +0000 (01:13 +0200)
committerJonas Dreßler <verdre@v0yd.nl>
Wed, 30 Jul 2025 20:38:19 +0000 (22:38 +0200)
Seems this was forgotten in the initial commit adding the new indicator.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3796>

js/ui/status/thunderbolt.js

index ffe4a08058e4f1bbbf554327026cfe0bd3e0f1ad..f0ee7edf1e834c4b6ed3c5b290a9af9fdabcdae4 100644 (file)
@@ -231,6 +231,8 @@ class Indicator extends SystemIndicator {
         this._robot.connect('enroll-device', this._onEnrollDevice.bind(this));
         this._robot.connect('enroll-failed', this._onEnrollFailed.bind(this));
 
+        this.connect('destroy', () => this._onDestroy());
+
         Main.sessionMode.connect('updated', this._sync.bind(this));
         this._sync();